<#escape x as x?html>
<form class="form-horizontal form-fusion" name="recordForm" id="recordForm" method="post" action="${actionType!}">
    <input type="text" class="hide"
           name="id" value="${(record.id)!}">
    <div class="form-group">
        <label class="col-sm-2 control-label" for="name">名称</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="name" placeholder="名称"
                   data-error="<@s.message "validator.error.require"/>" required
                   value="${(record.name)!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="description">描述</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="description" placeholder="描述"
                   value="${(record.description)!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="sort">排序</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="sort" placeholder="排序"
                   pattern="^[1-9]\d*$" data-error="<@s.message "validator.error.positiveInteger"/>" required
                   value="${(record.sort)!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>
</form>
</#escape>